package com.flea.hclv.model.dao;

import com.flea.hclv.model.entity.HVisitor;
import com.flea.hclv.model.entity.HVisitorOrderRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HVisitorOrderRelationMapper {
    int deleteByPrimaryKey(String id);

    int insert(HVisitorOrderRelation record);

    int insertSelective(HVisitorOrderRelation record);

    HVisitorOrderRelation selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(HVisitorOrderRelation record);

    int updateByPrimaryKey(HVisitorOrderRelation record);

    int insertBatch(@Param("entities") List<HVisitorOrderRelation> relations);

	void deleteBatch(@Param("visitors")List<HVisitor> delVistor);

	List<HVisitorOrderRelation> findByOrderNo(@Param("orderNo")String orderNo);

  int deleteBatchByRelation(@Param("hVisitorOrderRelations") List<HVisitorOrderRelation> hVisitorOrderRelations) throws  Exception;

  HVisitorOrderRelation findByOrderNoAndVisitorId(@Param("orderNo")String orderNo, @Param("oldVisitorId")String oldVisitorId);
}